function table(type,id){
	if(type==1){
		 layer.confirm("确认了吗", { title: "狠心拒绝通过吗?" }, function (index) {
		     $.post("auditOperation.do?id="+id+"&type="+type, function (data) {
		     	if(data.type==1){
		     		layer.msg("操作成功");
		     		  var index = parent.layer.getFrameIndex(window.name);
	                   //关闭当前frame
	                   parent.layer.close(index);
	                   window.location.reload();
		     	}else{
		     		layer.msg("操作失败");
		     	}
		     },"json");
		 }); 
	}else{
		layer.confirm("确认了吗", { title: "确认审核通过吗" }, function (index) {
		     $.post("auditOperation.do?id="+id+"&type="+type, function (data) {
		     	if(data.type==1){
		     		layer.msg("操作成功");
		     	   var index = parent.layer.getFrameIndex(window.name);
                   //关闭当前frame
                   parent.layer.close(index);
                   window.location.reload();
		     	}else{
		     		layer.msg("操作失败");
		     	}
		     },"json");
		 }); 
	}
	
}
$(function(){
	$.post("findIdWithdrawal.do?id="+$("#IdClass").val(),function(data){
			for (var i = 0; i < data.data.length; i++) {
					$("#cId").val(data.data[i].cId);
					$("#withdrawalsId").val(data.data[i].withdrawalsId);
					$("#realName").val(data.data[i].realName);
					$("#cellPhoneNumber").val(data.data[i].cellPhoneNumber);
					$("#cCreateTime").val(data.data[i].cCreateTime);
					$("#cashWithdrawalMethod").val(data.data[i].cashWithdrawalMethod);
					$("#cashWithdrawalAmount").val(data.data[i].cashWithdrawalAmount);
					$("#procedureCost").val(data.data[i].procedureCost);
					$("#amountOfAccountPayable").val(data.data[i].amountOfAccountPayable);
					$("#cReateEndtime").val(data.data[i].cReateEndtime);
					$("#operator").val(data.data[i].operator);
					$("#cStatic").html(data.data[i].cStatic);
			}
	},"json")
})